#ifndef _H_FONT
#define _H_FONT

#include <string>
#include <windows.h>

#include <iostream>

#include "ressource.h"

#define FONT_CHARNUM    224

#define DFT_FT_NAME     "Arial"
#define DFT_FT_FNAME    ""
#define DFT_FT_SIZE     12

#define DFT_FT_BOLD     false
#define DFT_FT_ITA      false
#define DFT_FT_STRO     false
#define DFT_FT_UNDER    false

using namespace std;

class font: public ressource{

    protected:
        unsigned int    fontBase;
        string          name;
        string          filename;
        unsigned int    size;

        bool bold;
        bool italic;
        bool stroke;
        bool under;
        bool created;

    public:
        font();
        ~font();

        void create();
        void reload();
        void destroy();

        void setName(string);
        void setFileName(string);
        void setSize(unsigned int);
        void setStroke(bool);
        void setItalic(bool);
        void setUnderline(bool);
        void setBold(bool);

        string getName();
        unsigned int getSize();
        unsigned int getBase();
        bool isStroke();
        bool isItalic();
        bool isUnderline();
        bool isBold();

        bool update();

};

#endif
